home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1993 November
/
JCSM Shareware Collection - 1993-11.iso
/
cl760
/
edgraphj.lzh
/
EXPANDME.EXE
/
lha
/
INTRO.GRF
< prev
next >
Wrap
Text File
|
1992-11-12
|
7KB
|
124 lines
{---------------------------------------------------------------------------}
{ This is an introductory data file for first-time users of EdGraph. }
{ Any text in curly brackets (like the whole of this paragraph) is ignored, }
{ so use the brackets liberally to add comments to your graphs. }
{ }
{ Graph applications are defined with a sequential list of commands. }
{ A built-in set of graphics and math commands plus a simple programming }
{ language give you virtually unlimited control over your technical graphs. }
{ }
{ HELP.. Type the F1 key for help at any stage. First place the cursor }
{ on a word which is a valid command to get specific help for that}
{ command. Otherwise you will get the last help screen you used. }
{ }
{ ALT keys..The top line shows commands that are executed with the Alt-keys:}
{ For example, type AltV to View the graph, AltX to quit the }
{ program, AltD to run a Dos command, etc. }
{ }
{ VIEW.. Type AltV (i.e. type V while holding down the Alt key) to see }
{ this very simple demo. }
{ }
{ PRINT.. You can then print it by typing AltP (if you get an }
{ "out of memory" message try AltS instead of AltP). }
{ But first... }
{ SPECIFY WHAT PRINTER YOU ARE USING at this next line: }
{---------------------------------------------------------------------------}
Printer=1; { This is a simple statement which defines a variable called }
{ "printer" and assigns it a value. The variable will be used }
{ later in the program to initalise the printer graphics. }
{ Change the value to one of these, depending on your printer:}
{ 1 = Generic 9 pin dot matrix, }
{ 2..7 = Epson: 2=MX, 3=RX, 4=FX, 5=EX, 6=LX, 7=LQ }
{ 8..9 = IBM: 8=ProPrinter, 9=QuietWriter }
{ 10..11 = NEC 24 pin, Toshiba 24 pin }
{ 12..13 = HP: 12=DeskJet, 13=LaserJet }
{ 14 = PostScript printers }
{--------------------------------------------------------------------------}
{ Now start the program for this demo graph. You can have more than one }
{ statement per line, as long as each statement ends in a semi-colon. }
{ There must always be an "initialise" statement before any plotting }
{ is done. Use F1 for help to see how to use any of the commands. For }
{ example, place the cursor on the word "initialise" and press F1. }
Initialise(Printer,130,130,1,1,"PRN");
{ There should also always be at least one "NewPlot" command, to specify }
{ x and y plotting ranges, where the axes are to be located on the page, }
{ and whether the x and/or y axis is to have log scales. Note that this }
{ command does not actually plot the axes - it just defines the values. }
NewPlot(0,0,100,100,20,100,20,100,0,0);
{ Now plot the axes (use F1 to see what the numbers mean)...}
xaxis("X-Axis",0,0,20,1,2,0,1);
yaxis("Y-Axis",0,0,20,1,2,0,1);
{ Move to (30,80) and write a short message... }
MoveTo(30,70);
Text("Hello World!");
{ And draw some parallel lines..}
For i=1 to 9;
Line(10*i,10,90,100-10*i);
EndFor;
{ And finally plot some points and connect them with a cubic spline. }
{ Place the cursor on the word "points" and press the F1 key for an }
{ explanation of the use of the command. }
Join=2; { 2 = join points with cubic spline }
{ Try changing it to 0 and 1 }
Symbol=2; { 0=none, 1=dot, 2=cirle, 3=square, 4=triangle, 5=inverted }
{ triangle, 6=diamond, 7=vertical ellipse, 8=horiz ellipse }
{ -1 = bar graph }
Points(1,2,0,0,Symbol,8,Join,0,0,0,1,"");
10 95
20 55
30 35
40 25
50 20
60 17.5
70 16
80 15
EndPoints;
{--------------------------------------------------------------------------}
{ Editing: You can use your own editor to create your graph files,
{ but make sure you use it in ASCII or non-document mode
{ to avoid using special control characters. Of course
{ using your own editor means no on-line help is
{ available, and you won't be able to actually run the
{ graphs from your editor (though EdGraph does have a
{ compile-from-Dos option to get around this. Start EdGraph
{ from Dos by typing "EDGAPH /?" for details).
{
{ EdGraph's editor uses a sub-set of WordStar commands.
{ Type F1 for help, then AltE for a list of editing commands.
{--------------------------------------------------------------------------
{ And that's it. Just a few commands for a very simple graph. Of course
{ you can do much more than this - the other demos give samples of most
{ of the features. Type the <F3> key and <Enter> to load another demo.
{
{ Suggestion: do the demos in this order..
{ -----------------------------------------
{ a) INTRO .grf Introductory demo for first-time users
{ b) DATASETS.grf Plot several related data sets from a data table
{ c) FUNCTION.grf Plot continuous math functions
{ d) BAR1 .grf Plot sets of data points as a bar graph
{ e) AXES .grf Customise the layout of the axes
{ f) ALLCMNDS.grf Brief demo of all available commands
{ g) CURVFIT0.grf Simple straight line curve fitting
{ h) CURVFIT1.grf Curve fitting by linear regression
{ i) CURVFIT2.grf Fitting Gaussian distribution, with fitted curve
{ plus residuals
{ j) CURVFIT3.grf Variation on CURVFIT2.grf
{ k) POLAR1 .grf Polar coordinates, and user keyboard input
{ l) POLAR2 .grf More polar coordinate plotting (cardioid)
{
{----END OF INTRO.GRF-----------------------------------------------------}